<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/dateTime.jsp"%>
<%@ include file="/commons/commonEdit.jsp"%>
<%@ include file="/commons/validation.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>高级查询</title>
<script language="JavaScript" src="${ctx}/scripts/common/prototype.js"></script>
<script language="JavaScript" src="${ctx}/scripts/div/common.js"></script>
<script type="text/javascript">
function next(url){
	window.location.href = url;
}
function choiceHouse(){
	var url = "${ctx}/customer_chooseSingleHouseAction.do?method=chooseBuildingMain";
	top.windowOpen(url, "choiceHouse", "", 500, 800);
}
function setHouseInfo(houseId,houseNum){
		$('houseNumber').value = houseNum;
		$('houseNumber').fireEvent("onblur");
}
function setSearchCondition(){
   var url="${ctx}/renovation_renovateViolationAction.do?method=setRenoViolateConditionCache";
   var parameters = Form.serialize('searchForm');
   new Ajax.Request(url,{method: 'post', parameters: parameters, onComplete: showResponse});
}
function showResponse(response){
	var obj=findFrame('main');
	windowClose();
	obj.reloadRenovate();

}
</script>
</head>

<body>
<form action="" id="searchForm" name="searchForm" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="window_head_outBg">
		<table border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td><img src="${ctx}/images/ico_Advance.gif" width="16"
					height="16" align="absmiddle"> <span
					class="window_head_intext">高级查询</span></td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td class="aux_header_line_1"></td>
	</tr>
	<tr>
		<td class="aux_header_line_2"></td>
	</tr>
	<tr>
		<td class="content">
		<table width="100%" ""border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td valign="top" class="aux_outtable_color">
				<table width="100%" border="0" cellpadding="0" cellspacing="1"
					class="aux_intable_color">
					<tr>
						<td class="aux_intable_td1">楼 栋：</td>
						<td class="aux_intable_td2"><pms:unitedSelect
							name="buildingId" optionLabel="name" optionValue="keyword"
							selectText="请选择" dataList="${buildList}" style="width:110px;">
						</pms:unitedSelect></td>
						<td class="aux_intable_td1">房 号：</td>
						<td class="aux_intable_td2">
						<table border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td><input name="houseNumber" type="text" size="16"></td>
								<td width="4">&nbsp;</td>
								<td><a href="#" onClick="choiceHouse();"
									onFocus="this.blur()"><img
									src="${ctx}/images/ico_houesno.GIF" alt="请点选查找房号" border="0"></a><span
									id="bdAfter"></span></td>
							</tr>
						</table>
						</td>
					</tr>
					<tr>
						<td class="aux_intable_td1">业主姓名：</td>
						<td class="aux_intable_td2"><input name="owner" type="text"
							value="" size="16" /></td>
						<td class="aux_intable_td1">检查人：</td>
						<td class="aux_intable_td2"><input name="checkMan"
							type="text" value="" size="16" /></td>
					</tr>

					<td class="aux_intable_td1">验收人：</td>
					<td class="aux_intable_td2"><input name="inspectionMan"
						type="text" value="" size="16" /></td>
					<td class="aux_intable_td1">状态：</td>
					<td class="aux_intable_td2"><pms:unitedSelect name="state"
						optionLabel="name" optionValue="value" selectText="请选择"
						dataList="${stateList}" style="width:110px;" /></td>
					</tr>
					<tr>
						<td class="aux_intable_td1">装修许可证号：</td>
						<td class="aux_intable_td2"><input name="renovateLicenceNO"
							type="text" class="" value="" size="16" /></td>
						<td class="aux_intable_td1">装修承建商：</td>
						<td class="aux_intable_td2"><input name="companyName"
							type="text" value="" size="16" /></td>
					</tr>
					<tr>
					<tr>
						<td class="aux_intable_td1">责任部门：</td>
						<td class="aux_intable_td2"><pms:unitedSelect name="deptId"
							optionLabel="deptName" optionValue="deptId" selectText="请选择"
							dataList="${burdenDeptList}" style="width:110px;" /></td>
						<td class="aux_intable_td1">违规类别：</td>
						<td class="aux_intable_td2"><pms:unitedSelect
							name="categoryId" optionLabel="name" optionValue="keyword"
							selectText="请选择" dataList="${categoryList}" style="width:110px;" />
						</td>
					</tr>

					<tr>
						<td class="aux_intable_td1">检查日期：</td>
						<td colspan="3" class="aux_intable_td2">
						<table border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td><input name="beginCheckDate" type="text"
									class="inputtext" size="16" maxlength="10"></td>
								<td width="4">&nbsp;</td>
								<td><a href="#"><img name="beginCheckButton"
									src="${ctx}/images/ico_clock.gif" alt="请点选查找日期" border="0"></a></td>
								<td width="4">&nbsp;至&nbsp;</td>
								<td><input name="endCheckDate" type="text"
									class="inputtext" size="16" maxlength="10"></td>
								<td width="4">&nbsp;</td>
								<td><a href="#"><img name="endCheckButton"
									src="${ctx}/images/ico_clock.gif" alt="请点选查找日期" border="0"></a></td>
							</tr>
						</table>
						</td>
					</tr>
					<tr>
						<td class="aux_intable_td1">整改完成日期：</td>
						<td colspan="3" class="aux_intable_td2">
						<table border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td><input name="beginCompleteDate" type="text"
									class="inputtext" size="16" maxlength="10"></td>
								<td width="4">&nbsp;</td>
								<td><a href="#"><img name="beginCompleteButton"
									src="${ctx}/images/ico_clock.gif" alt="请点选查找日期" border="0"></a></td>
								<td width="4">&nbsp;至&nbsp;</td>
								<td><input name="endCompleteDate" type="text"
									class="inputtext" size="16" maxlength="10"></td>
								<td width="4">&nbsp;</td>
								<td><a href="#"><img name="endCompleteButton"
									src="${ctx}/images/ico_clock.gif" alt="请点选查找日期" border="0"></a></td>
							</tr>
						</table>
						</td>
					</tr>
					<tr>
						<td class="aux_intable_td1">验收日期：</td>
						<td colspan="3" class="aux_intable_td2">
						<table border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td><input name="beginInspectionDate" type="text"
									class="inputtext" size="16" maxlength="10"></td>
								<td width="4">&nbsp;</td>
								<td><a href="#"><img name="beginInspectionButton"
									src="${ctx}/images/ico_clock.gif" alt="请点选查找日期" border="0"></a></td>
								<td width="4">&nbsp;至&nbsp;</td>
								<td><input name="endInspectionDate" type="text"
									class="inputtext" size="16" maxlength="10"></td>
								<td width="4">&nbsp;</td>
								<td><a href="#"><img name="endInspectionButton"
									src="${ctx}/images/ico_clock.gif" alt="请点选查找日期" border="0"></a></td>
							</tr>
						</table>
						</td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td class="window_footer">
		<table border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td>
				<table border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td class="buttonOffLeft" id="btn1_21"></td>
						<td class="buttonOffMiddle" id="btn1_22"
							onClick="setSearchCondition();" onMouseOver="btn_change_over(2)"
							onMouseOut="btn_change_out(2)" onblur="btn_change(2)">
							<input type="hidden" name="containPassed" value="1" />
							<img
							src="${ctx}/images/ico_ok.gif" alt="" width="14" height="14"
							border="0" align="absbottom"> 确 定</td>
						<td class="buttonOffRight" id="btn1_23"></td>
					</tr>
				</table>
				</td>
				<td class="btn_between_space"></td>
				<td>
				<table border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td class="buttonOffLeft" id="btn1_31"></td>
						<td class="buttonOffMiddle" id="btn1_32" onClick="windowClose();"
							onMouseOver="btn_change_over(3)" onMouseOut="btn_change_out(3)"
							onblur="btn_change(3)"><img
							src="${ctx}/images/ico_cancel.gif" alt="" width="14" height="14"
							border="0" align="absbottom"> 取 消</td>
						<td class="buttonOffRight" id="btn1_33"></td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</form>
<script type="text/javascript">

               Calendar.setup(
              {
	              inputField : "beginCheckDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "beginCheckButton", // ID of the button
	              align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
               Calendar.setup(
              {
	              inputField : "endCheckDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "endCheckButton", // ID of the button
	              align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
              
               Calendar.setup(
              {
	              inputField : "beginCompleteDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "beginCompleteButton", // ID of the button
	              align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
               Calendar.setup(
              {
	              inputField : "endCompleteDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "endCompleteButton", // ID of the button
	              align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
              
               Calendar.setup(
              {
	              inputField : "beginInspectionDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "beginInspectionButton", // ID of the button
	              align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
               Calendar.setup(
              {
	              inputField : "endInspectionDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "endInspectionButton", // ID of the button
	              align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
</script>
</body>
</html>